package com.bd.wechat.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface FileService {

    /**
     * 文件上传接口
     *
     * @param file 上传的文件
     * @return 访问地址
     * @throws Exception
     */
    String uploadFile(MultipartFile file) throws Exception;

    Boolean remove(String fileUrl);

    byte[] download(String bucketName, String objectName, HttpServletResponse response) throws Exception;
}
